********************************************************************************
* Rebels with a Cause: Does Ideology Make Armed Conflicts Longer and Bloodier? *
********************************************************************************

* Replication Dataset DOI: awaiting assignment... 
* Authors: Matthias Basedau (matthias.basedau@giga-hamburg.de), Moran Deitch (moran.deitch@biu.ac.il), Ariel Zellman (ariel.zellman@biu.ac.il)

*****************************************
* Models Appearing in Appendix in Order *
*****************************************

******************
* Primary Models *
******************

**********************************
* SET DATA AS SURVIVAL-TIME DATA *
**********************************

stset year1 if obsolete_ucdp_data==0, failure(ep_end==1) id(dyad_id_rev) origin(time start_year_1) exit(time .)

**********************************************************************
* Table A2. “Risk” of Armed Conflict Termination – Dyadic, 1950-2017 *
**********************************************************************

stcox incomp_ideology_all incomp_rel_aff rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox incomp_ideology_all incomp_rel_aff rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war, nohr efron vce(robust) nolog strata(ep_no)

stcox post_cold_war##(c.incomp_ideology_all c.incomp_rel_aff) rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox i.incomp_ideologies incomp_rel_aff rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox i.incomp_ideologies incomp_rel_aff rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war, nohr efron vce(robust) nolog strata(ep_no)

stcox post_cold_war##(i.incomp_ideologies c.incomp_rel_aff) rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

***********************************************************************
* Table A3. “Risk” of Armed Conflict Termination – Monadic, 1950-2017 *
***********************************************************************

stcox claim_ideology rel_aff01 rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox claim_ideology rel_aff01 rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war, nohr efron vce(robust) nolog strata(ep_no)

stcox post_cold_war##(c.claim_ideology c.rel_aff01) rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox claim_communist claim_libdem i.chr_claim_type i.mus_claim_type rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox claim_communist claim_libdem i.chr_claim_type i.mus_claim_type rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war, nohr efron vce(robust) nolog strata(ep_no)

stcox post_cold_war##(c.claim_communist c.claim_libdem i.chr_claim_type i.mus_claim_type) rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

**************************************************************************************
* Table A2-HR. Risk of Armed Conflict Termination – Dyadic, 1950-2017, Hazard Ratios *
**************************************************************************************

stcox incomp_ideology_all incomp_rel_aff rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, efron vce(robust) nolog strata(ep_no)

stcox incomp_ideology_all incomp_rel_aff rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war, efron vce(robust) nolog strata(ep_no)

stcox post_cold_war##(c.incomp_ideology_all c.incomp_rel_aff) rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, efron vce(robust) nolog strata(ep_no)

stcox i.incomp_ideologies incomp_rel_aff rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, efron vce(robust) nolog strata(ep_no)

stcox i.incomp_ideologies incomp_rel_aff rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war, efron vce(robust) nolog strata(ep_no)

stcox post_cold_war##(i.incomp_ideologies c.incomp_rel_aff) rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, efron vce(robust) nolog strata(ep_no)

***************************************************************************************
* Table A3-HR. Risk of Armed Conflict Termination - Monadic, 1950-2017, Hazard Ratios *
***************************************************************************************

stcox claim_ideology rel_aff01 rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, efron vce(robust) nolog strata(ep_no)

stcox claim_ideology rel_aff01 rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war, efron vce(robust) nolog strata(ep_no)

stcox post_cold_war##(c.claim_ideology c.rel_aff01) rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, efron vce(robust) nolog strata(ep_no)

stcox claim_communist claim_libdem i.chr_claim_type i.mus_claim_type rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, efron vce(robust) nolog strata(ep_no)

stcox claim_communist claim_libdem i.chr_claim_type i.mus_claim_type rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war, efron vce(robust) nolog strata(ep_no)

stcox post_cold_war##(c.claim_communist c.claim_libdem i.chr_claim_type i.mus_claim_type) rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, efron vce(robust) nolog strata(ep_no)

**************************
* SET DATA AS PANEL DATA *
**************************

xtset dyad_id_rev year

*******************************************************************************************
* Table A4. Determinants of Conflict Intensity - Any Ideological Incompatibility - Dyadic *
*******************************************************************************************

xtlogit intensity_level01 incomp_ideology_all incomp_rel_aff rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust) nolog

xtlogit intensity_level01 incomp_ideology_all incomp_rel_aff rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war i.year if obsolete_ucdp_data==0, vce(robust) nolog

xtlogit intensity_level01 post_cold_war##(c.incomp_ideology_all c.incomp_rel_aff) rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust) nolog

xtnbreg bd_best incomp_ideology_all incomp_rel_aff rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, re

xtnbreg bd_best incomp_ideology_all incomp_rel_aff rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, fe

**************************************************************************************************
* Table A5. Determinants of Conflict Intensity – Specific ideological Incompatibilities – Dyadic *
**************************************************************************************************

xtlogit intensity_level01 i.incomp_ideologies incomp_rel_aff rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 i.incomp_ideologies incomp_rel_aff rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 post_cold_war##(i.incomp_ideologies c.incomp_rel_aff) rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtnbreg bd_best i.incomp_ideologies incomp_rel_aff rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, re

xtnbreg bd_best i.incomp_ideologies incomp_rel_aff rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, fe

**********************************************************************************
* Table A6. Determinants of Conflict Intensity - Any Ideological Claim - Monadic *
**********************************************************************************

xtlogit intensity_level01 rel_aff01 claim_ideology rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 rel_aff01 claim_ideology rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 post_cold_war##(c.rel_aff01 c.claim_ideology) rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtnbreg bd_best rel_aff01 claim_ideology rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, re

xtnbreg bd_best rel_aff01 claim_ideology rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, fe

****************************************************************************************
* Table A7. Determinants of Conflict Intensity – Types of Ideological Claims – Monadic *
****************************************************************************************

xtlogit intensity_level01 i.rel_claim_types claim_other rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 i.rel_claim_types claim_other rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 post_cold_war##(i.rel_claim_types c.claim_other) rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtnbreg bd_best i.rel_claim_types claim_other rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, re

xtnbreg bd_best i.rel_claim_types claim_other rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, fe

************************************************************************************************
* Table A8. Determinants of Conflict Intensity - Specific Types of Ideological Claim – Monadic *
************************************************************************************************

xtlogit intensity_level01 i.chr_claim_type i.mus_claim_type claim_communist claim_libdem rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 i.chr_claim_type i.mus_claim_type claim_communist claim_libdem rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 post_cold_war##(i.chr_claim_type i.mus_claim_type c.claim_communist c.claim_libdem) rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtnbreg bd_best i.chr_claim_type i.mus_claim_type claim_communist claim_libdem rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, re

xtnbreg bd_best i.chr_claim_type i.mus_claim_type claim_communist claim_libdem rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, fe

*********************
* Robustness Checks *
*********************

**********************************
* SET DATA AS SURVIVAL-TIME DATA *
**********************************

stset year1 if obsolete_ucdp_data==0, failure(ep_end==1) id(dyad_id_rev) origin(time start_year_1) exit(time .)

***********************************************************************************
* Table A2-A. “Risk” of Armed Conflict Termination – Dyadic, 1950-2010, NAGs Data *
***********************************************************************************

stcox incomp_ideology_all incomp_rel_aff rebel_ext_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox incomp_ideology_all incomp_rel_aff rebel_ext_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war, nohr efron vce(robust) nolog strata(ep_no)

stcox post_cold_war##(c.incomp_ideology_all c.incomp_rel_aff) rebel_ext_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox i.incomp_ideologies incomp_rel_aff rebel_ext_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox i.incomp_ideologies incomp_rel_aff rebel_ext_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war, nohr efron vce(robust) nolog strata(ep_no)

stcox post_cold_war##(i.incomp_ideologies c.incomp_rel_aff) rebel_ext_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

************************************************************************************
* Table A3-A. “Risk” of Armed Conflict Termination – Monadic, 1950-2010, NAGs Data *
************************************************************************************

stcox claim_ideology rel_aff01 rebel_ext_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox claim_ideology rel_aff01 rebel_ext_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war, nohr efron vce(robust) nolog strata(ep_no)

stcox post_cold_war##(c.claim_ideology c.rel_aff01) rebel_ext_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox claim_communist claim_libdem i.chr_claim_type i.mus_claim_type rebel_ext_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox claim_communist claim_libdem i.chr_claim_type i.mus_claim_type rebel_ext_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war, nohr efron vce(robust) nolog strata(ep_no)

stcox post_cold_war##(c.claim_communist c.claim_libdem i.chr_claim_type i.mus_claim_type) rebel_ext_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

**************************
* SET DATA AS PANEL DATA *
**************************

xtset dyad_id_rev year

********************************************************************************************************
* Table A4-A. Determinants of Conflict Intensity - Any Ideological Incompatibility - Dyadic, NAGs Data *
********************************************************************************************************

xtlogit intensity_level01 incomp_ideology_all incomp_rel_aff rebel_ext_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust) nolog

xtlogit intensity_level01 incomp_ideology_all incomp_rel_aff rebel_ext_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war i.year if obsolete_ucdp_data==0, vce(robust) nolog

xtlogit intensity_level01 post_cold_war##(c.incomp_ideology_all c.incomp_rel_aff) rebel_ext_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust) nolog

xtnbreg bd_best incomp_ideology_all incomp_rel_aff rebel_ext_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, re

xtnbreg bd_best incomp_ideology_all incomp_rel_aff rebel_ext_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, fe

***************************************************************************************************************
* Table A5-A. Determinants of Conflict Intensity – Specific ideological Incompatibilities – Dyadic, NAGs Data *
***************************************************************************************************************

xtlogit intensity_level01 i.incomp_ideologies incomp_rel_aff rebel_ext_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 i.incomp_ideologies incomp_rel_aff rebel_ext_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 post_cold_war##(i.incomp_ideologies c.incomp_rel_aff) rebel_ext_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtnbreg bd_best i.incomp_ideologies incomp_rel_aff rebel_ext_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, re

xtnbreg bd_best i.incomp_ideologies incomp_rel_aff rebel_ext_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, fe

***********************************************************************************************
* Table A6-A. Determinants of Conflict Intensity - Any Ideological Claim - Monadic, NAGs data *
***********************************************************************************************

xtlogit intensity_level01 rel_aff01 claim_ideology rebel_ext_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 rel_aff01 claim_ideology rebel_ext_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 post_cold_war##(c.rel_aff01 c.claim_ideology) rebel_ext_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtnbreg bd_best rel_aff01 claim_ideology rebel_ext_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, re

xtnbreg bd_best rel_aff01 claim_ideology rebel_ext_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, fe

*****************************************************************************************************
* Table A7-A. Determinants of Conflict Intensity – Types of Ideological Claims – Monadic, NAGs Data *
*****************************************************************************************************

xtlogit intensity_level01 i.rel_claim_types claim_other rebel_ext_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 i.rel_claim_types claim_other rebel_ext_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 post_cold_war##(i.rel_claim_types c.claim_other) rebel_ext_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtnbreg bd_best i.rel_claim_types claim_other rebel_ext_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, re

xtnbreg bd_best i.rel_claim_types claim_other rebel_ext_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, fe

*************************************************************************************************************
* Table A8-A. Determinants of Conflict Intensity - Specific Types of Ideological Claim – Monadic, NAGs Data *
*************************************************************************************************************

xtlogit intensity_level01 i.chr_claim_type i.mus_claim_type claim_communist claim_libdem rebel_ext_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 i.chr_claim_type i.mus_claim_type claim_communist claim_libdem rebel_ext_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 post_cold_war##(i.chr_claim_type i.mus_claim_type c.claim_communist c.claim_libdem) rebel_ext_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtnbreg bd_best i.chr_claim_type i.mus_claim_type claim_communist claim_libdem rebel_ext_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, re

xtnbreg bd_best i.chr_claim_type i.mus_claim_type claim_communist claim_libdem rebel_ext_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, fe

**********************************
* SET DATA AS SURVIVAL-TIME DATA *
**********************************

stset year1 if obsolete_ucdp_data==0, failure(ep_end==1) id(dyad_id_rev) origin(time start_year_1) exit(time .)

**************************************************************************************
* Table A2-B. “Risk” of Armed Conflict Termination – Dyadic, 1950-2017, ACD2EPR Data *
**************************************************************************************

stcox incomp_ideology_all incomp_ethnic_ideology incomp_rel_aff incomp_ethnic_id rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox incomp_ideology_all incomp_ethnic_ideology incomp_rel_aff incomp_ethnic_id rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war, nohr efron vce(robust) nolog strata(ep_no)

stcox post_cold_war##(c.incomp_ideology_all incomp_ethnic_ideology c.incomp_rel_aff c.incomp_ethnic_id) rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox i.incomp_ideologies incomp_ethnic_ideology incomp_rel_aff incomp_ethnic_id rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox i.incomp_ideologies incomp_ethnic_ideology incomp_rel_aff incomp_ethnic_id rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war, nohr efron vce(robust) nolog strata(ep_no)

stcox post_cold_war##(i.incomp_ideologies c.incomp_ethnic_ideology c.incomp_rel_aff c.incomp_ethnic_id) rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

***************************************************************************************
* Table A3-B. “Risk” of Armed Conflict Termination – Monadic, 1950-2017, ACD2EPR Data *
***************************************************************************************

stcox claim_ideology rel_aff01 reb_id_ethnic reb_ideology_ethnic rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox claim_ideology rel_aff01 reb_id_ethnic reb_ideology_ethnic rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war, nohr efron vce(robust) nolog strata(ep_no)

stcox post_cold_war##(c.claim_ideology c.rel_aff01 c.reb_id_ethnic c.reb_ideology_ethnic) rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox claim_communist claim_libdem i.chr_claim_type i.mus_claim_type rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox claim_communist claim_libdem i.chr_claim_type i.mus_claim_type rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war, nohr efron vce(robust) nolog strata(ep_no)

stcox post_cold_war##(c.claim_communist c.claim_libdem i.chr_claim_type i.mus_claim_type) rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

**************************
* SET DATA AS PANEL DATA *
**************************

xtset dyad_id_rev year

***********************************************************************************************************
* Table A4-B. Determinants of Conflict Intensity - Any Ideological Incompatibility - Dyadic, ACD2EPR Data *
***********************************************************************************************************

xtlogit intensity_level01 incomp_ideology_all incomp_ethnic_ideology incomp_rel_aff incomp_ethnic_id rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust) nolog

xtlogit intensity_level01 incomp_ideology_all incomp_ethnic_ideology incomp_rel_aff incomp_ethnic_id rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war i.year if obsolete_ucdp_data==0, vce(robust) nolog

xtlogit intensity_level01 post_cold_war##(c.incomp_ideology_all incomp_ethnic_ideology c.incomp_rel_aff c.incomp_ethnic_id) rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust) nolog

xtnbreg bd_best incomp_ideology_all incomp_ethnic_ideology incomp_rel_aff incomp_ethnic_id rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, re

xtnbreg bd_best incomp_ideology_all incomp_ethnic_ideology incomp_rel_aff incomp_ethnic_id rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, fe

******************************************************************************************************************
* Table A5-B. Determinants of Conflict Intensity – Specific ideological Incompatibilities – Dyadic, ACD2EPR Data *
******************************************************************************************************************

xtlogit intensity_level01 i.incomp_ideologies incomp_ethnic_ideology incomp_rel_aff incomp_ethnic_id rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 i.incomp_ideologies incomp_ethnic_ideology incomp_rel_aff incomp_ethnic_id rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 post_cold_war##(i.incomp_ideologies c.incomp_ethnic_ideology c.incomp_rel_aff c.incomp_ethnic_id) rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtnbreg bd_best i.incomp_ideologies incomp_ethnic_ideology incomp_rel_aff incomp_ethnic_id rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, re

xtnbreg bd_best i.incomp_ideologies incomp_ethnic_ideology incomp_rel_aff incomp_ethnic_id rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, fe

**************************************************************************************************
* Table A6-B. Determinants of Conflict Intensity - Any Ideological Claim - Monadic, ACD2EPR Data *
**************************************************************************************************

xtlogit intensity_level01 rel_aff01 claim_ideology reb_id_ethnic reb_ideology_ethnic rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 rel_aff01 claim_ideology reb_id_ethnic reb_ideology_ethnic rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 post_cold_war##(c.rel_aff01 c.claim_ideology c.reb_id_ethnic c.reb_ideology_ethnic) rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtnbreg bd_best rel_aff01 claim_ideology reb_id_ethnic reb_ideology_ethnic rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, re

xtnbreg bd_best rel_aff01 claim_ideology reb_id_ethnic reb_ideology_ethnic rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, fe

********************************************************************************************************
* Table A7-B. Determinants of Conflict Intensity – Types of Ideological Claims – Monadic, ACD2EPR Data *
********************************************************************************************************

xtlogit intensity_level01 i.rel_claim_types reb_id_ethnic reb_ideology_ethnic claim_other rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 i.rel_claim_types reb_id_ethnic reb_ideology_ethnic claim_other rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 post_cold_war##(i.rel_claim_types c.reb_id_ethnic c.reb_ideology_ethnic c.claim_other) rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtnbreg bd_best i.rel_claim_types reb_id_ethnic reb_ideology_ethnic claim_other rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, re

xtnbreg bd_best i.rel_claim_types reb_id_ethnic reb_ideology_ethnic claim_other rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, fe

****************************************************************************************************************
* Table A8-B. Determinants of Conflict Intensity - Specific Types of Ideological Claim – Monadic, ACD2EPR Data *
****************************************************************************************************************

xtlogit intensity_level01 i.chr_claim_type i.mus_claim_type reb_id_ethnic reb_ideology_ethnic claim_communist claim_libdem rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 i.chr_claim_type i.mus_claim_type reb_id_ethnic reb_ideology_ethnic claim_communist claim_libdem rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 post_cold_war##(i.chr_claim_type i.mus_claim_type c.reb_id_ethnic c.reb_ideology_ethnic c.claim_communist c.claim_libdem) rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtnbreg bd_best i.chr_claim_type i.mus_claim_type reb_id_ethnic reb_ideology_ethnic claim_communist claim_libdem rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, re

xtnbreg bd_best i.chr_claim_type i.mus_claim_type reb_id_ethnic reb_ideology_ethnic claim_communist claim_libdem rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, fe

**********************************
* SET DATA AS SURVIVAL-TIME DATA *
**********************************

stset year1 if obsolete_ucdp_data==0, failure(ep_end==1) id(dyad_id_rev) origin(time start_year_1) exit(time .)

**************************************************************************************
* Table A2-C1. “Risk” of Armed Conflict Termination – Dyadic, 1950-2017, Risk of Armed Conflict Termination - Dyadic - General Incompatibilities, Different Temporal Thresholds (post-Iranian Revolution, post-Cold War, post-9/11) *
**************************************************************************************

stcox incomp_ideology_all incomp_rel_aff rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war, nohr efron vce(robust) nolog strata(ep_no)

stcox post_cold_war##(c.incomp_ideology_all c.incomp_rel_aff) rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox incomp_ideology_all incomp_rel_aff rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_iran_rev, nohr efron vce(robust) nolog strata(ep_no)

stcox post_iran_rev##(c.incomp_ideology_all c.incomp_rel_aff) rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox incomp_ideology_all incomp_rel_aff rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_2001, nohr efron vce(robust) nolog strata(ep_no)

stcox post_2001##(c.incomp_ideology_all c.incomp_rel_aff) rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

*****************************************************************************************
* Table A2-C2. Risk of Armed Conflict Termination - Dyadic - Specific Incompatibilities, Different Temporal Thresholds (post-Iranian Revolution, post-Cold War, post-9/11) *
*****************************************************************************************

stcox i.incomp_ideologies incomp_rel_aff rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war, nohr efron vce(robust) nolog strata(ep_no)

stcox post_cold_war##(i.incomp_ideologies c.incomp_rel_aff) rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox i.incomp_ideologies incomp_rel_aff rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_iran_rev, nohr efron vce(robust) nolog strata(ep_no)

stcox post_iran_rev##(i.incomp_ideologies c.incomp_rel_aff) rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox i.incomp_ideologies incomp_rel_aff rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_2001, nohr efron vce(robust) nolog strata(ep_no)

stcox post_2001##(i.incomp_ideologies c.incomp_rel_aff) rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

****************************************************************************************
* Table A3-C1. Risk of Armed Conflict Termination - Monadic - General Claims, Different Temporal Thresholds (post-Iranian Revolution, post-Cold War, post-9/11) *
****************************************************************************************

stcox claim_ideology rel_aff01 rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war, nohr efron vce(robust) nolog strata(ep_no)

stcox post_cold_war##(c.claim_ideology c.rel_aff01) rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox claim_ideology rel_aff01 rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_iran_rev, nohr efron vce(robust) nolog strata(ep_no)

stcox post_iran_rev##(c.claim_ideology c.rel_aff01) rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox claim_ideology rel_aff01 rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_2001, nohr efron vce(robust) nolog strata(ep_no)

stcox post_2001##(c.claim_ideology c.rel_aff01) rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

*****************************************************************************************
* Table A3-C2. Risk of Armed Conflict Termination - Monadic - Specific Claims, Different Temporal Thresholds (post-Iranian Revolution, post-Cold War, post-9/11) *
*****************************************************************************************

stcox claim_communist claim_libdem i.chr_claim_type i.mus_claim_type rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war, nohr efron vce(robust) nolog strata(ep_no)

stcox post_cold_war##(c.claim_communist c.claim_libdem i.chr_claim_type i.mus_claim_type) rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox claim_communist claim_libdem i.chr_claim_type i.mus_claim_type rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_iran_rev, nohr efron vce(robust) nolog strata(ep_no)

stcox post_iran_rev##(c.claim_communist c.claim_libdem i.chr_claim_type i.mus_claim_type) rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox claim_communist claim_libdem i.chr_claim_type i.mus_claim_type rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_2001, nohr efron vce(robust) nolog strata(ep_no)

stcox post_2001##(c.claim_communist c.claim_libdem i.chr_claim_type i.mus_claim_type) rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

**************************
* SET DATA AS PANEL DATA *
**************************

xtset dyad_id_rev year

************************************************************************************************
* Table A4C. Conflict Intensity - Dyadic - General, Different Temporal Thresholds (post-Iranian Revolution, post-Cold War, post-9/11) *
************************************************************************************************

xtlogit intensity_level01 incomp_ideology_all incomp_rel_aff rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war i.year if obsolete_ucdp_data==0, vce(robust) nolog

xtlogit intensity_level01 post_cold_war##(c.incomp_ideology_all c.incomp_rel_aff) rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust) nolog

xtlogit intensity_level01 incomp_ideology_all incomp_rel_aff rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_iran_rev i.year if obsolete_ucdp_data==0, vce(robust) nolog

xtlogit intensity_level01 post_iran_rev##(c.incomp_ideology_all c.incomp_rel_aff) rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust) nolog

xtlogit intensity_level01 incomp_ideology_all incomp_rel_aff rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_2001 i.year if obsolete_ucdp_data==0, vce(robust) nolog

xtlogit intensity_level01 post_2001##(c.incomp_ideology_all c.incomp_rel_aff) rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust) nolog

**************************************************************************************************
* Table A5-C. Conflict Intensity - Dyadic - Specific, Different Temporal Thresholds (post-Iranian Revolution, post-Cold War, post-9/11) *
**************************************************************************************************

xtlogit intensity_level01 i.incomp_ideologies incomp_rel_aff rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 post_cold_war##(i.incomp_ideologies c.incomp_rel_aff) rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 i.incomp_ideologies incomp_rel_aff rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_iran_rev i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 post_iran_rev##(i.incomp_ideologies c.incomp_rel_aff) rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 i.incomp_ideologies incomp_rel_aff rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_2001 i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 post_2001##(i.incomp_ideologies c.incomp_rel_aff) rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

*******************************************************************************************
* Table A6-C. Conflict Intensity – Monadic – General, Different Temporal Thresholds (post-Iranian Revolution, post-Cold War, post-9/11) *
*******************************************************************************************

xtlogit intensity_level01 rel_aff01 claim_ideology rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 post_cold_war##(c.rel_aff01 c.claim_ideology) rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 rel_aff01 claim_ideology rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_iran_rev i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 post_iran_rev##(c.rel_aff01 c.claim_ideology) rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 rel_aff01 claim_ideology rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_2001 i.year if obsolete_ucdp_data==0, vce(robust)

**** xtlogit intensity_level01 post_2001##(c.rel_aff01 c.claim_ideology) rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)
**** does not converge ****

*************************************************************************************************
* Table A7-C. Conflict Intensity - Monadic - Types, Different Temporal Thresholds (post-Iranian Revolution, post-Cold War, post-9/11) *
*************************************************************************************************

xtlogit intensity_level01 i.rel_claim_types claim_other rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 post_cold_war##(i.rel_claim_types c.claim_other) rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 i.rel_claim_types claim_other rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_iran_rev i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 post_iran_rev##(i.rel_claim_types c.claim_other) rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 i.rel_claim_types claim_other rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_2001 i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 post_2001##(i.rel_claim_types c.claim_other) rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

***************************************************************************************************
* Table A8-C. Conflict Intensity - Monadic - Specific Types, Different Temporal Thresholds (post-Iranian Revolution, post-Cold War, post-9/11) *
***************************************************************************************************

xtlogit intensity_level01 i.chr_claim_type i.mus_claim_type claim_communist claim_libdem rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 post_cold_war##(i.chr_claim_type i.mus_claim_type c.claim_communist c.claim_libdem) rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 i.chr_claim_type i.mus_claim_type claim_communist claim_libdem rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_iran_rev i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 post_iran_rev##(i.chr_claim_type i.mus_claim_type c.claim_communist c.claim_libdem) rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 i.chr_claim_type i.mus_claim_type claim_communist claim_libdem rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_2001 i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 post_2001##(i.chr_claim_type i.mus_claim_type c.claim_communist c.claim_libdem) rebel_ext_mil_support incomp_terr side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

**********************************
* SET DATA AS SURVIVAL-TIME DATA *
**********************************

stset year1 if obsolete_ucdp_data==0, failure(ep_end==1) id(dyad_id_rev) origin(time start_year_1) exit(time .)

**********************************************************************
* Table A2-D. “Risk” of Armed Conflict Termination – Dyadic, 1950-2017, NSA Data *
**********************************************************************

stcox incomp_ideology_all incomp_rel_aff rebel_ext_mil_support incomp_terr intensity_level rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox incomp_ideology_all incomp_rel_aff rebel_ext_mil_support incomp_terr intensity_level rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war, nohr efron vce(robust) nolog strata(ep_no)

stcox post_cold_war##(c.incomp_ideology_all c.incomp_rel_aff) rebel_ext_mil_support incomp_terr intensity_level rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox i.incomp_ideologies incomp_rel_aff rebel_ext_mil_support incomp_terr intensity_level rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox i.incomp_ideologies incomp_rel_aff rebel_ext_mil_support incomp_terr intensity_level rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war, nohr efron vce(robust) nolog strata(ep_no)

stcox post_cold_war##(i.incomp_ideologies c.incomp_rel_aff) rebel_ext_mil_support incomp_terr intensity_level rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

***********************************************************************
* Table A3-D. “Risk” of Armed Conflict Termination – Monadic, 1950-2017, NSA Data *
***********************************************************************

stcox claim_ideology rel_aff01 rebel_ext_mil_support incomp_terr intensity_level rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox claim_ideology rel_aff01 rebel_ext_mil_support incomp_terr intensity_level rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war, nohr efron vce(robust) nolog strata(ep_no)

stcox post_cold_war##(c.claim_ideology c.rel_aff01) rebel_ext_mil_support incomp_terr intensity_level rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox claim_communist claim_libdem i.chr_claim_type i.mus_claim_type rebel_ext_mil_support incomp_terr intensity_level rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox claim_communist claim_libdem i.chr_claim_type i.mus_claim_type rebel_ext_mil_support incomp_terr intensity_level rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war, nohr efron vce(robust) nolog strata(ep_no)

stcox post_cold_war##(c.claim_communist c.claim_libdem i.chr_claim_type i.mus_claim_type) rebel_ext_mil_support incomp_terr intensity_level rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

**************************
* SET DATA AS PANEL DATA *
**************************

xtset dyad_id_rev year

*******************************************************************************************
* Table A4-D. Determinants of Conflict Intensity - Any Ideological Incompatibility - Dyadic, NSA Data *
*******************************************************************************************

xtlogit intensity_level01 incomp_ideology_all incomp_rel_aff rebel_ext_mil_support incomp_terr rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust) nolog

xtlogit intensity_level01 incomp_ideology_all incomp_rel_aff rebel_ext_mil_support incomp_terr rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war i.year if obsolete_ucdp_data==0, vce(robust) nolog

xtlogit intensity_level01 post_cold_war##(c.incomp_ideology_all c.incomp_rel_aff) rebel_ext_mil_support incomp_terr rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust) nolog

xtnbreg bd_best incomp_ideology_all incomp_rel_aff rebel_ext_mil_support incomp_terr rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, re

xtnbreg bd_best incomp_ideology_all incomp_rel_aff rebel_ext_mil_support incomp_terr rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, fe

**************************************************************************************************
* Table A5-D. Determinants of Conflict Intensity – Specific ideological Incompatibilities – Dyadic, NSA Data *
**************************************************************************************************

xtlogit intensity_level01 i.incomp_ideologies incomp_rel_aff rebel_ext_mil_support incomp_terr rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 i.incomp_ideologies incomp_rel_aff rebel_ext_mil_support incomp_terr rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 post_cold_war##(i.incomp_ideologies c.incomp_rel_aff) rebel_ext_mil_support incomp_terr rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtnbreg bd_best i.incomp_ideologies incomp_rel_aff rebel_ext_mil_support incomp_terr rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, re

xtnbreg bd_best i.incomp_ideologies incomp_rel_aff rebel_ext_mil_support incomp_terr rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, fe

**********************************************************************************
* Table A6-D. Determinants of Conflict Intensity - Any Ideological Claim - Monadic, NSA Data *
**********************************************************************************

xtlogit intensity_level01 rel_aff01 claim_ideology rebel_ext_mil_support incomp_terr rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 rel_aff01 claim_ideology rebel_ext_mil_support incomp_terr rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 post_cold_war##(c.rel_aff01 c.claim_ideology) rebel_ext_mil_support incomp_terr rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtnbreg bd_best rel_aff01 claim_ideology rebel_ext_mil_support incomp_terr rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, re

xtnbreg bd_best rel_aff01 claim_ideology rebel_ext_mil_support incomp_terr rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, fe

****************************************************************************************
* Table A7-D. Determinants of Conflict Intensity – Types of Ideological Claims – Monadic, NSA Data *
****************************************************************************************

xtlogit intensity_level01 i.rel_claim_types claim_other rebel_ext_mil_support incomp_terr rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 i.rel_claim_types claim_other rebel_ext_mil_support incomp_terr rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 post_cold_war##(i.rel_claim_types c.claim_other) rebel_ext_mil_support incomp_terr rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtnbreg bd_best i.rel_claim_types claim_other rebel_ext_mil_support incomp_terr rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, re

xtnbreg bd_best i.rel_claim_types claim_other rebel_ext_mil_support incomp_terr rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, fe

************************************************************************************************
* Table A8-D. Determinants of Conflict Intensity - Specific Types of Ideological Claim – Monadic, NSA Data *
************************************************************************************************

xtlogit intensity_level01 i.chr_claim_type i.mus_claim_type claim_communist claim_libdem rebel_ext_mil_support incomp_terr rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 i.chr_claim_type i.mus_claim_type claim_communist claim_libdem rebel_ext_mil_support incomp_terr rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 post_cold_war##(i.chr_claim_type i.mus_claim_type c.claim_communist c.claim_libdem) rebel_ext_mil_support incomp_terr rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtnbreg bd_best i.chr_claim_type i.mus_claim_type claim_communist claim_libdem rebel_ext_mil_support incomp_terr rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, re

xtnbreg bd_best i.chr_claim_type i.mus_claim_type claim_communist claim_libdem rebel_ext_mil_support incomp_terr rebstrength_nsa side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, fe

**********************************
* SET DATA AS SURVIVAL-TIME DATA *
**********************************

stset year1 if obsolete_ucdp_data==0, failure(ep_end==1) id(dyad_id_rev) origin(time start_year_1) exit(time .)

**********************************************************************
* Table A2-E. “Risk” of Armed Conflict Termination – Dyadic, 1950-2015, GRP scores *
**********************************************************************

stcox incomp_ideology_all incomp_rel_aff rebel_ext_mil_support incomp_terr intensity_level rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox incomp_ideology_all incomp_rel_aff rebel_ext_mil_support incomp_terr intensity_level rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war, nohr efron vce(robust) nolog strata(ep_no)

stcox post_cold_war##(c.incomp_ideology_all c.incomp_rel_aff) rebel_ext_mil_support incomp_terr intensity_level rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox i.incomp_ideologies incomp_rel_aff rebel_ext_mil_support incomp_terr intensity_level rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox i.incomp_ideologies incomp_rel_aff rebel_ext_mil_support incomp_terr intensity_level rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war, nohr efron vce(robust) nolog strata(ep_no)

stcox post_cold_war##(i.incomp_ideologies c.incomp_rel_aff) rebel_ext_mil_support incomp_terr intensity_level rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

***********************************************************************
* Table A3-E. “Risk” of Armed Conflict Termination – Monadic, 1950-2015, GRP scores *
***********************************************************************

stcox claim_ideology rel_aff01 rebel_ext_mil_support incomp_terr intensity_level rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox claim_ideology rel_aff01 rebel_ext_mil_support incomp_terr intensity_level rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war, nohr efron vce(robust) nolog strata(ep_no)

stcox post_cold_war##(c.claim_ideology c.rel_aff01) rebel_ext_mil_support incomp_terr intensity_level rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox claim_communist claim_libdem i.chr_claim_type i.mus_claim_type rebel_ext_mil_support incomp_terr intensity_level rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox claim_communist claim_libdem i.chr_claim_type i.mus_claim_type rebel_ext_mil_support incomp_terr intensity_level rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war, nohr efron vce(robust) nolog strata(ep_no)

stcox post_cold_war##(c.claim_communist c.claim_libdem i.chr_claim_type i.mus_claim_type) rebel_ext_mil_support incomp_terr intensity_level rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

**************************
* SET DATA AS PANEL DATA *
**************************

xtset dyad_id_rev year

*******************************************************************************************
* Table A4-E. Determinants of Conflict Intensity - Any Ideological Incompatibility - Dyadic, GRP scores *
*******************************************************************************************

xtlogit intensity_level01 incomp_ideology_all incomp_rel_aff rebel_ext_mil_support incomp_terr rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust) nolog

xtlogit intensity_level01 incomp_ideology_all incomp_rel_aff rebel_ext_mil_support incomp_terr rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war i.year if obsolete_ucdp_data==0, vce(robust) nolog

xtlogit intensity_level01 post_cold_war##(c.incomp_ideology_all c.incomp_rel_aff) rebel_ext_mil_support incomp_terr rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust) nolog

xtnbreg bd_best incomp_ideology_all incomp_rel_aff rebel_ext_mil_support incomp_terr rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, re

xtnbreg bd_best incomp_ideology_all incomp_rel_aff rebel_ext_mil_support incomp_terr rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, fe

**************************************************************************************************
* Table A5-E. Determinants of Conflict Intensity – Specific ideological Incompatibilities – Dyadic, GRP scores *
**************************************************************************************************

xtlogit intensity_level01 i.incomp_ideologies incomp_rel_aff rebel_ext_mil_support incomp_terr rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 i.incomp_ideologies incomp_rel_aff rebel_ext_mil_support incomp_terr rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 post_cold_war##(i.incomp_ideologies c.incomp_rel_aff) rebel_ext_mil_support incomp_terr rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtnbreg bd_best i.incomp_ideologies incomp_rel_aff rebel_ext_mil_support incomp_terr rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, re

xtnbreg bd_best i.incomp_ideologies incomp_rel_aff rebel_ext_mil_support incomp_terr rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, fe

**********************************************************************************
* Table A6-E. Determinants of Conflict Intensity - Any Ideological Claim - Monadic, GRP scores *
**********************************************************************************

xtlogit intensity_level01 rel_aff01 claim_ideology rebel_ext_mil_support incomp_terr rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 rel_aff01 claim_ideology rebel_ext_mil_support incomp_terr rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 post_cold_war##(c.rel_aff01 c.claim_ideology) rebel_ext_mil_support incomp_terr rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtnbreg bd_best rel_aff01 claim_ideology rebel_ext_mil_support incomp_terr rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, re

xtnbreg bd_best rel_aff01 claim_ideology rebel_ext_mil_support incomp_terr rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, fe

****************************************************************************************
* Table A7-E. Determinants of Conflict Intensity – Types of Ideological Claims – Monadic, GRP scores *
****************************************************************************************

xtlogit intensity_level01 i.rel_claim_types claim_other rebel_ext_mil_support incomp_terr rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 i.rel_claim_types claim_other rebel_ext_mil_support incomp_terr rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 post_cold_war##(i.rel_claim_types c.claim_other) rebel_ext_mil_support incomp_terr rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtnbreg bd_best i.rel_claim_types claim_other rebel_ext_mil_support incomp_terr rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, re

xtnbreg bd_best i.rel_claim_types claim_other rebel_ext_mil_support incomp_terr rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, fe

************************************************************************************************
* Table A8-E. Determinants of Conflict Intensity - Specific Types of Ideological Claim – Monadic, GRP scores *
************************************************************************************************

xtlogit intensity_level01 i.chr_claim_type i.mus_claim_type claim_communist claim_libdem rebel_ext_mil_support incomp_terr rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 i.chr_claim_type i.mus_claim_type claim_communist claim_libdem rebel_ext_mil_support incomp_terr rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads post_cold_war i.year if obsolete_ucdp_data==0, vce(robust)

xtlogit intensity_level01 post_cold_war##(i.chr_claim_type i.mus_claim_type c.claim_communist c.claim_libdem) rebel_ext_mil_support incomp_terr rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads i.year if obsolete_ucdp_data==0, vce(robust)

xtnbreg bd_best i.chr_claim_type i.mus_claim_type claim_communist claim_libdem rebel_ext_mil_support incomp_terr rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, re

xtnbreg bd_best i.chr_claim_type i.mus_claim_type claim_communist claim_libdem rebel_ext_mil_support incomp_terr rr_grp side_a_lnGDP vdem_rescale vdem_rescale_sq rcd_loot rcd_crime active_dyads l1.bd_best i.year if obsolete_ucdp_data==0, fe

**********************************
* SET DATA AS SURVIVAL-TIME DATA *
**********************************

stset year1 if obsolete_ucdp_data==0, failure(ep_end==1) id(dyad_id_rev) origin(time start_year_1) exit(time .)

*********************************************************************************************
* Table A2-F. Risk of Armed Conflict Termination, Dyadic, 1950-2017, Cold War Split Samples *
*********************************************************************************************

stcox incomp_ideology_all incomp_rel_aff rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox incomp_ideology_all incomp_rel_aff rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads if post_cold_war==0, nohr efron vce(robust) nolog strata(ep_no)

stcox incomp_ideology_all incomp_rel_aff rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads if post_cold_war==1, nohr efron vce(robust) nolog strata(ep_no)

stcox incomp_rel_aff i.incomp_ideologies rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox incomp_rel_aff i.incomp_ideologies rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads if post_cold_war==0, nohr efron vce(robust) nolog strata(ep_no)

stcox incomp_rel_aff i.incomp_ideologies rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads if post_cold_war==1, nohr efron vce(robust) nolog strata(ep_no)

**********************************************************************************************
* Table A3-F. Risk of Armed Conflict Termination, Monadic, 1950-2017, Cold War Split Samples *
**********************************************************************************************

stcox claim_ideology rel_aff01 rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox claim_ideology rel_aff01 rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads if post_cold_war==0, nohr efron vce(robust) nolog strata(ep_no)

stcox claim_ideology rel_aff01 rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads if post_cold_war==1, nohr efron vce(robust) nolog strata(ep_no)

stcox claim_communist claim_libdem i.chr_claim_type i.mus_claim_type rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads, nohr efron vce(robust) nolog strata(ep_no)

stcox claim_communist claim_libdem i.chr_claim_type i.mus_claim_type rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads if post_cold_war==0, nohr efron vce(robust) nolog strata(ep_no)
 
stcox claim_communist claim_libdem i.chr_claim_type i.mus_claim_type rebel_ext_mil_support incomp_terr intensity_level side_a_lnGDP vdem_rescale vdem_rescale_sq active_dyads if post_cold_war==1, nohr efron vce(robust) nolog strata(ep_no) 
